]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
AppDisplay/FrequentView: filter out hidden applications
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 31 Mar 2013 18:05:49 +0000 (20:05 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 22 Apr 2013 17:11:17 +0000 (19:11 +0200)
Filter out all applications which have the NoDisplay, Hidden or
Not/OnlyShowIn bits, as those are not meant to be launched directly.
This also allows the user to filter apps from the frequent view
using alacarte.

https://bugzilla.gnome.org/show_bug.cgi?id=696949

js/ui/appDisplay.js

index 22ae481e5f5e7fdbbd60d4346e838243bf9c447c..bcfb57a2c21f5fd02d97fe7063caf5e5568bf381 100644 (file)
@@ -316,6 +316,8 @@ const FrequentView = new Lang.Class({
     loadApps: function() {
         let mostUsed = this._usage.get_most_used ("");
         for (let i = 0; i < mostUsed.length; i++) {
+            if (!mostUsed[i].get_app_info().should_show())
+                continue;
             let appIcon = new AppIcon(mostUsed[i]);
             this._grid.addItem(appIcon.actor, -1);
         }